package com.lottery.www.service.impl;

import com.lottery.www.entity.OrderDetails;
import com.lottery.www.dao.OrderDetailsDao;
import com.lottery.www.service.OrderDetailsService;
import com.github.yulichang.base.MPJBaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author leo
 * @since 2023-05-23 12:43:08
 */
@Service("orderDetailsService")
public class OrderDetailsServiceImpl extends MPJBaseServiceImpl<OrderDetailsDao, OrderDetails> implements OrderDetailsService {

    @Autowired
    private OrderDetailsDao orderDetailsDao;

    @Override
    public List<OrderDetails> findCycleValueByType(String type) {
        if(type==null){
            return null;
        }
        return orderDetailsDao.findCycleValueByType(type);
    }
}
